package com.jsu.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LostMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LostMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLostmessageIdIsNull() {
            addCriterion("lostmessage_id is null");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdIsNotNull() {
            addCriterion("lostmessage_id is not null");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdEqualTo(Integer value) {
            addCriterion("lostmessage_id =", value, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdNotEqualTo(Integer value) {
            addCriterion("lostmessage_id <>", value, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdGreaterThan(Integer value) {
            addCriterion("lostmessage_id >", value, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("lostmessage_id >=", value, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdLessThan(Integer value) {
            addCriterion("lostmessage_id <", value, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdLessThanOrEqualTo(Integer value) {
            addCriterion("lostmessage_id <=", value, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdIn(List<Integer> values) {
            addCriterion("lostmessage_id in", values, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdNotIn(List<Integer> values) {
            addCriterion("lostmessage_id not in", values, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdBetween(Integer value1, Integer value2) {
            addCriterion("lostmessage_id between", value1, value2, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andLostmessageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("lostmessage_id not between", value1, value2, "lostmessageId");
            return (Criteria) this;
        }

        public Criteria andProviderIsNull() {
            addCriterion("provider is null");
            return (Criteria) this;
        }

        public Criteria andProviderIsNotNull() {
            addCriterion("provider is not null");
            return (Criteria) this;
        }

        public Criteria andProviderEqualTo(Integer value) {
            addCriterion("provider =", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderNotEqualTo(Integer value) {
            addCriterion("provider <>", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderGreaterThan(Integer value) {
            addCriterion("provider >", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderGreaterThanOrEqualTo(Integer value) {
            addCriterion("provider >=", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderLessThan(Integer value) {
            addCriterion("provider <", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderLessThanOrEqualTo(Integer value) {
            addCriterion("provider <=", value, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderIn(List<Integer> values) {
            addCriterion("provider in", values, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderNotIn(List<Integer> values) {
            addCriterion("provider not in", values, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderBetween(Integer value1, Integer value2) {
            addCriterion("provider between", value1, value2, "provider");
            return (Criteria) this;
        }

        public Criteria andProviderNotBetween(Integer value1, Integer value2) {
            addCriterion("provider not between", value1, value2, "provider");
            return (Criteria) this;
        }

        public Criteria andLostIsNull() {
            addCriterion("lost is null");
            return (Criteria) this;
        }

        public Criteria andLostIsNotNull() {
            addCriterion("lost is not null");
            return (Criteria) this;
        }

        public Criteria andLostEqualTo(Integer value) {
            addCriterion("lost =", value, "lost");
            return (Criteria) this;
        }

        public Criteria andLostNotEqualTo(Integer value) {
            addCriterion("lost <>", value, "lost");
            return (Criteria) this;
        }

        public Criteria andLostGreaterThan(Integer value) {
            addCriterion("lost >", value, "lost");
            return (Criteria) this;
        }

        public Criteria andLostGreaterThanOrEqualTo(Integer value) {
            addCriterion("lost >=", value, "lost");
            return (Criteria) this;
        }

        public Criteria andLostLessThan(Integer value) {
            addCriterion("lost <", value, "lost");
            return (Criteria) this;
        }

        public Criteria andLostLessThanOrEqualTo(Integer value) {
            addCriterion("lost <=", value, "lost");
            return (Criteria) this;
        }

        public Criteria andLostIn(List<Integer> values) {
            addCriterion("lost in", values, "lost");
            return (Criteria) this;
        }

        public Criteria andLostNotIn(List<Integer> values) {
            addCriterion("lost not in", values, "lost");
            return (Criteria) this;
        }

        public Criteria andLostBetween(Integer value1, Integer value2) {
            addCriterion("lost between", value1, value2, "lost");
            return (Criteria) this;
        }

        public Criteria andLostNotBetween(Integer value1, Integer value2) {
            addCriterion("lost not between", value1, value2, "lost");
            return (Criteria) this;
        }

        public Criteria andPhototimeIsNull() {
            addCriterion("phototime is null");
            return (Criteria) this;
        }

        public Criteria andPhototimeIsNotNull() {
            addCriterion("phototime is not null");
            return (Criteria) this;
        }

        public Criteria andPhototimeEqualTo(Date value) {
            addCriterion("phototime =", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeNotEqualTo(Date value) {
            addCriterion("phototime <>", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeGreaterThan(Date value) {
            addCriterion("phototime >", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeGreaterThanOrEqualTo(Date value) {
            addCriterion("phototime >=", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeLessThan(Date value) {
            addCriterion("phototime <", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeLessThanOrEqualTo(Date value) {
            addCriterion("phototime <=", value, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeIn(List<Date> values) {
            addCriterion("phototime in", values, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeNotIn(List<Date> values) {
            addCriterion("phototime not in", values, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeBetween(Date value1, Date value2) {
            addCriterion("phototime between", value1, value2, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhototimeNotBetween(Date value1, Date value2) {
            addCriterion("phototime not between", value1, value2, "phototime");
            return (Criteria) this;
        }

        public Criteria andPhotopathIsNull() {
            addCriterion("photopath is null");
            return (Criteria) this;
        }

        public Criteria andPhotopathIsNotNull() {
            addCriterion("photopath is not null");
            return (Criteria) this;
        }

        public Criteria andPhotopathEqualTo(String value) {
            addCriterion("photopath =", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotEqualTo(String value) {
            addCriterion("photopath <>", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathGreaterThan(String value) {
            addCriterion("photopath >", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathGreaterThanOrEqualTo(String value) {
            addCriterion("photopath >=", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathLessThan(String value) {
            addCriterion("photopath <", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathLessThanOrEqualTo(String value) {
            addCriterion("photopath <=", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathLike(String value) {
            addCriterion("photopath like", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotLike(String value) {
            addCriterion("photopath not like", value, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathIn(List<String> values) {
            addCriterion("photopath in", values, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotIn(List<String> values) {
            addCriterion("photopath not in", values, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathBetween(String value1, String value2) {
            addCriterion("photopath between", value1, value2, "photopath");
            return (Criteria) this;
        }

        public Criteria andPhotopathNotBetween(String value1, String value2) {
            addCriterion("photopath not between", value1, value2, "photopath");
            return (Criteria) this;
        }

        public Criteria andFacetokenIsNull() {
            addCriterion("facetoken is null");
            return (Criteria) this;
        }

        public Criteria andFacetokenIsNotNull() {
            addCriterion("facetoken is not null");
            return (Criteria) this;
        }

        public Criteria andFacetokenEqualTo(String value) {
            addCriterion("facetoken =", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotEqualTo(String value) {
            addCriterion("facetoken <>", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenGreaterThan(String value) {
            addCriterion("facetoken >", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenGreaterThanOrEqualTo(String value) {
            addCriterion("facetoken >=", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenLessThan(String value) {
            addCriterion("facetoken <", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenLessThanOrEqualTo(String value) {
            addCriterion("facetoken <=", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenLike(String value) {
            addCriterion("facetoken like", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotLike(String value) {
            addCriterion("facetoken not like", value, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenIn(List<String> values) {
            addCriterion("facetoken in", values, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotIn(List<String> values) {
            addCriterion("facetoken not in", values, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenBetween(String value1, String value2) {
            addCriterion("facetoken between", value1, value2, "facetoken");
            return (Criteria) this;
        }

        public Criteria andFacetokenNotBetween(String value1, String value2) {
            addCriterion("facetoken not between", value1, value2, "facetoken");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}